﻿using Coldairarrow.Entity.Base;
using Coldairarrow.Entity.DTO;
using Coldairarrow.Util;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Coldairarrow.Business.Base
{
    public partial interface IBase_RepairOrderAccidentBusiness
    {
        Task<PageResult<Base_RepairOrderAccident>> GetDataListAsync(PageInput<ConditionDTO> input);
        Task<Base_RepairOrderAccident> GetTheDataAsync(string id);
        Task AddDataAsync(Base_RepairOrderAccident data);
        Task UpdateDataAsync(Base_RepairOrderAccident data);
        Task DeleteDataAsync(List<string> ids);
        /// <summary>
        /// 获取设备事故列表
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<PageResult<Base_RepairOrderAccidentDTO>> GetRepairOrderApplyList(PageInput<PB_ScheduleDetailConditionDTO> input);
        /// <summary>
        /// 获取设备规格
        /// </summary>
        Task<Base_RepairOrderAccidentSpec> GetRepairOrderAccidentSpec(string DeviceId);
        /// <summary>
        /// 通过设备编号获取设备事故记录
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<PageResult<Base_RepairOrderAccidentDTO>> GetRepairDeviceId(PageInput<PB_ScheduleDetailConditionDTO> input,string DeviceId);
    }
}